import axios from '@/libs/api.request'

// 商家列表
export const getSellerList = (data) => {
  return axios.request({
    url: 'BusinessMain/GetPageList',
    method: 'post',
    data
  })
}

// 商家申请列表
export const getSellerAuditList = (data) => {
  return axios.request({
    url: 'BusinessApply/GetPageList',
    method: 'post',
    data
  })
}
// 商家申请详情
export const getSellerAuditDetail = (data) => {
  return axios.request({
    url: 'BusinessApply/GetModel',
    method: 'post',
    data
  })
}
// 商家申请审核
export const editSellerAudit = (data) => {
  return axios.request({
    url: 'BusinessApply/UpdateModel',
    method: 'post',
    data
  })
}

// 商家类型列表
export const getSellerTypeList = (data) => {
  return axios.request({
    url: 'BusinessType/GetPageList',
    method: 'post',
    data
  })
}
// 商家类型详情
export const getSellerTypeDetail = (data) => {
  return axios.request({
    url: 'BusinessType/GetModel',
    method: 'post',
    data
  })
}
// 修改商家类型详情
export const editSellerType = (data) => {
  return axios.request({
    url: 'BusinessType/UpdateModel',
    method: 'post',
    data
  })
}
